﻿@model Janus.Mes.VO.SysConfigVO

@{
    Layout = null;
    var i = 1;
    ViewBag.ViewTitle = "新增-系统参数";
}
<div class="pageContent">
    <form method="post" action="System/SysConfig/create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone);">
        @Html.ValidationSummary(true)
        <div class="pageFormContent" layouth="56">
            <input id="hidIsCreate" name="hidIsCreate" type="hidden" value="@ViewBag.IsCreate" />
            @Html.HiddenFor(model => model.Id)
            <p>
                <label>
                    盘点时间
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Key, new { @Readonly = "true" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Key)
            </p>
            <p>
                <label>
                    盘点单号
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
            </p>
            <p>
                <label>
                    盘点人
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Value, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Value)
                <a class="btnLook" href="/Manufacturing/OutLineStockCheck/InventoryPsn" lookupgroup="org1">盘点人选择</a>
                @*<input id="checkper" type="button" value="..." />*@
            </p>
            <p>
                <label>
                    仓库编码
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Value)
                <a class="btnLook" href="/Manufacturing/OutLineStockCheck/StockSelect" lookupgroup="org1">仓库选择</a>
                @*<a class="buttonActive" href="/Manufacturing/OutLineStockCheck/StockSelect">...</span></a>*@
                @*<input id="btn" type="button" value="..." style="float:left;" onclick="alert('test')" />*@
                @Html.ValidationMessageFor(sysConfig => sysConfig.Value)
            </p>
            <p>
                <label>
                    仓库名称
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Key, new { style = "width:180px;", @Readonly = "true" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Value)
            </p>
            <p>
                <label>
                    复盘人
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Value, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Value)
                <a class="btnLook" href="/Manufacturing/OutLineStockCheck/InventoryPsn" lookupgroup="org1">复盘人选择</a>
                @*<input id="checkper" type="button" value="..." />*@
            </p>
            <p>
                <label>
                    仓位编码
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Value, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Value)
                <a class="btnLook" href="/Manufacturing/OutLineStockCheck/PositionSelect" lookupgroup="org1">仓位选择</a>
                @*<input id="checkper" type="button" value="..." />*@
            </p>
            <p>
                <label>
                    仓位名称
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Key, new { style = "width:180px;", @Readonly = "true" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Value)
            </p>
            <p>
                <label>
                    条形码(复盘)
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Key, new { style = "width:180px;", @Readonly = "true" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Value)
            </p>
            <p>
                <input id="sure" type="button" value="生成盘点清单" />
            </p>

            <table class="list" width="100%">
                <thead>
                    <tr>
                        <th>序号</th>
                        <th>物料编码</th>
                        <th>品名规格</th>
                        <th>仓库编码</th>
                        <th>仓库名称</th>
                        <th>仓位编码</th>
                        <th>仓位名称</th>
                        <th>账面数量</th>
                        <th>实盘数量</th>
                        <th>盈亏数量</th>
                        <th>单位</th>
                        <th>备注</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>序号</td>
                        <td>物料编码</td>
                        <td>品名规格</td>
                        <td>仓库编码</td>
                        <td>仓库名称</td>
                        <td>仓位编码</td>
                        <td>仓位名称</td>
                        <td>账面数量</td>
                        <td>实盘数量</td>
                        <td>盈亏数量</td>
                        <td>单位</td>
                        <td>备注</td>
                    </tr>
                    <tr>
                        <td>序号</td>
                        <td>物料编码</td>
                        <td>品名规格</td>
                        <td>仓库编码</td>
                        <td>仓库名称</td>
                        <td>仓位编码</td>
                        <td>仓位名称</td>
                        <td>账面数量</td>
                        <td>实盘数量</td>
                        <td>盈亏数量</td>
                        <td>单位</td>
                        <td>备注</td>
                    </tr>
                </tbody>
            </table>
            @Html.Partial("Operation", Model)
        </div>
        @Html.Partial("FormButtonBar")
    </form>
</div>
